package com.foreknow.oop5;

/**
 * A：为父类
 * B：为子类
 * Java中只支持单继承
 */
public class B extends A {
  public static void main(String[] args) {
    B b = new B();
    b.setId(100);
    b.setName("tom");
    b.setAge(40);

    b.showInfo();
  }
}
